from django.urls import path, re_path
from flask_restful.inputs import url
from . import views

app_name = 'app01'
urlpatterns = [
    path('hello/', views.hello),

    # re_path(r'^index/(\w+)/(\d+)/$', views.index),
    re_path(r'^index/(?P<city>\w+)/(?P<temp>\d+)/$', views.index),
    path('get/', views.get_view),
    path('post/', views.post_view),
    path('put/', views.put_view),
    path('delete/', views.delete_view),
    path('request/', views.request_view),
    path('response/', views.response_view),
    path('response2/', views.response_view2),
    path('jsonresponse/', views.json_response_view),
    path('forbiddent/', views.forbiddent_view),
    path('notfound/', views.notfound_view),
    path('redirect/', views.redirect_view),
    path('redirect2/', views.redirect2_view),
    path('user/', views.user_center_view),
    path('my_login/', views.login_view, name='app1_login'),
    path('cookie/', views.cookie_view),
    path('get_cookie/', views.get_cookie_view),
    path('set_session/', views.set_session_view),
    path('get_session/', views.get_session_view),
    path('del_session/', views.del_sessoin_view),
    path('flush_session/', views.flush_session_view),

]
